package com.example.demo.controller;

import com.example.demo.Service.ExecGetOrderRegService;
import com.example.demo.beans.ExecGetOrderRegRequest;
import com.example.demo.beans.ExecGetOrderRegResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**执行预约取号
 * Created by Administrator on 2018-04-24.
 */
@RestController
public class ExecGetOrderRegController {
    @Autowired
    @Qualifier("ExecGetOrderRegService")
    private ExecGetOrderRegService service;
    @ResponseBody
    @RequestMapping(value = "ExecGetOrderReg",produces = "application/xml")
    public ExecGetOrderRegResponse execGetorder(@RequestBody ExecGetOrderRegRequest request)
    { if(request!=null){
        return  service.execOrder(request);
    }
    return  null;

    }
}
